<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Reranker Framework (ReFr): reranker::EnvironmentImpl Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Reranker Framework (ReFr)
   
   </div>
   <div id="projectbrief">Reranking framework for structure prediction and discriminative language modeling</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacereranker.html">reranker</a>      </li>
      <li class="navelem"><a class="el" href="classreranker_1_1_environment_impl.html">EnvironmentImpl</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">reranker::EnvironmentImpl Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="reranker::EnvironmentImpl" --><!-- doxytag: inherits="reranker::Environment" -->
<p>Provides a set of named variables and their types, as well as the values for those variable.  
 <a href="classreranker_1_1_environment_impl.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for reranker::EnvironmentImpl:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classreranker_1_1_environment_impl.png" usemap="#reranker::EnvironmentImpl_map" alt=""/>
  <map id="reranker::EnvironmentImpl_map" name="reranker::EnvironmentImpl_map">
<area href="classreranker_1_1_environment.html" title="An interface for an environment in which variables of various types are mapped to their values..." alt="reranker::Environment" shape="rect" coords="0,0,159,24"/>
</map>
 </div></div>

<p><a href="classreranker_1_1_environment_impl-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#a950ed9620daeffdd2d3e26a9a58f5e0a">EnvironmentImpl</a> (int debug=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs a new, empty environment.  <a href="#a950ed9620daeffdd2d3e26a9a58f5e0a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#a50a9c84d509eb54b5baa1acdc0a18bfe">~EnvironmentImpl</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroys this environment.  <a href="#a50a9c84d509eb54b5baa1acdc0a18bfe"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#ae88e17a317d959cf91bb4d5660a68c59">Defined</a> (const string &amp;varname) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether the specified variable has been defined in this environment.  <a href="#ae88e17a317d959cf91bb4d5660a68c59"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#ae8549b3ea2960701a99da3e6d4054c9e">ReadAndSet</a> (const string &amp;varname, <a class="el" href="classreranker_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;st)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the specified variable to the value obtained from the following tokens available from the specified token stream.  <a href="#ae8549b3ea2960701a99da3e6d4054c9e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual const string &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#a275a8c6c31f7c2bb32a238c82065518d">GetType</a> (const string &amp;varname) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the type name of the specified variable.  <a href="#a275a8c6c31f7c2bb32a238c82065518d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classreranker_1_1_var_map_base.html">VarMapBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#ac7b813bc8bb592d54f9f81c7b79a1c44">GetVarMap</a> (const string &amp;varname)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the <a class="el" href="classreranker_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> instance for the specified variable.  <a href="#ac7b813bc8bb592d54f9f81c7b79a1c44"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classreranker_1_1_var_map_base.html">VarMapBase</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#a0b8461c2a65c4b439acc46d97ba01283">GetVarMapForType</a> (const string &amp;type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the <a class="el" href="classreranker_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> instance for the specified type.  <a href="#a0b8461c2a65c4b439acc46d97ba01283"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#a19bdb0da8cbaa2ba188d4d6415241741">Print</a> (ostream &amp;os) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classreranker_1_1_environment.html">Environment</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#ae8b103a71223c7702ecaf33840d5e114">Copy</a> () const </td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classreranker_1_1_environment_impl.html#ab3f0b07dc01a5fc63a4ab93ebe14bda6">Get</a> (const string &amp;varname, T *value) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the value of the variable with the specified name and puts into into the object pointed to by the <code>value</code> parameter.  <a href="#ab3f0b07dc01a5fc63a4ab93ebe14bda6"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Provides a set of named variables and their types, as well as the values for those variable. </p>
<p>N.B.: Primitive values are stored as strings, and are converted on demand to a concrete primitive type, one of <code>{bool,int,double,string}</code>. Because of this, this class only considers variables to have one of four types (even if their concrete types are more specific): </p>
<ul>
<li>
primitive </li>
<li>
vector of a primitive type </li>
<li>
<a class="el" href="classreranker_1_1_factory.html">Factory</a>-constructible type </li>
<li>
vector of a <a class="el" href="classreranker_1_1_factory.html">Factory</a>-constructible type </li>
</ul>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classreranker_1_1_interpreter.html" title="Provides an interpreter for assigning primitives and Factory-constructible objects to named variables...">Interpreter</a> </dd></dl>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00070">70</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a950ed9620daeffdd2d3e26a9a58f5e0a"></a><!-- doxytag: member="reranker::EnvironmentImpl::EnvironmentImpl" ref="a950ed9620daeffdd2d3e26a9a58f5e0a" args="(int debug=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classreranker_1_1_environment_impl.html#a950ed9620daeffdd2d3e26a9a58f5e0a">reranker::EnvironmentImpl::EnvironmentImpl</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>debug</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructs a new, empty environment. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">debug</td><td>the debug level; if greater than 0, various debugging messages will be output to <code>std::cerr</code> </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="environment-impl_8_c_source.html#l00041">41</a> of file <a class="el" href="environment-impl_8_c_source.html">environment-impl.C</a>.</p>

</div>
</div>
<a class="anchor" id="a50a9c84d509eb54b5baa1acdc0a18bfe"></a><!-- doxytag: member="reranker::EnvironmentImpl::~EnvironmentImpl" ref="a50a9c84d509eb54b5baa1acdc0a18bfe" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_environment_impl.html#a50a9c84d509eb54b5baa1acdc0a18bfe">reranker::EnvironmentImpl::~EnvironmentImpl</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroys this environment. </p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00079">79</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae8b103a71223c7702ecaf33840d5e114"></a><!-- doxytag: member="reranker::EnvironmentImpl::Copy" ref="ae8b103a71223c7702ecaf33840d5e114" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_environment.html">Environment</a>* <a class="el" href="classreranker_1_1_environment_impl.html#ae8b103a71223c7702ecaf33840d5e114">reranker::EnvironmentImpl::Copy</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a copy of this environment. </p>
 
<p>Implements <a class="el" href="classreranker_1_1_environment.html#ad5ad2fe5a00eba18331de208dd4f4b02">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00139">139</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="ae88e17a317d959cf91bb4d5660a68c59"></a><!-- doxytag: member="reranker::EnvironmentImpl::Defined" ref="ae88e17a317d959cf91bb4d5660a68c59" args="(const string &amp;varname) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool <a class="el" href="classreranker_1_1_environment_impl.html#ae88e17a317d959cf91bb4d5660a68c59">reranker::EnvironmentImpl::Defined</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether the specified variable has been defined in this environment. </p>

<p>Implements <a class="el" href="classreranker_1_1_environment.html#aed7a464b7498b2855eb24ee4563c8276">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00088">88</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="ab3f0b07dc01a5fc63a4ab93ebe14bda6"></a><!-- doxytag: member="reranker::EnvironmentImpl::Get" ref="ab3f0b07dc01a5fc63a4ab93ebe14bda6" args="(const string &amp;varname, T *value) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classreranker_1_1_environment_impl.html#ab3f0b07dc01a5fc63a4ab93ebe14bda6">reranker::EnvironmentImpl::Get</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the value of the variable with the specified name and puts into into the object pointed to by the <code>value</code> parameter. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir"></td><td class="paramname">varname</td><td>the name of the variable whose value is to be retrieved </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">value</td><td>a pointer to the object whose value is to be set </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>whether the specified variable exists and its value was successfully set by this method </dd></dl>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00183">183</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="a275a8c6c31f7c2bb32a238c82065518d"></a><!-- doxytag: member="reranker::EnvironmentImpl::GetType" ref="a275a8c6c31f7c2bb32a238c82065518d" args="(const string &amp;varname) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual const string&amp; <a class="el" href="classreranker_1_1_environment_impl.html#a275a8c6c31f7c2bb32a238c82065518d">reranker::EnvironmentImpl::GetType</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the type name of the specified variable. </p>

<p>Implements <a class="el" href="classreranker_1_1_environment.html#a971839d4e0e9f5a2d7e76214c81592f3">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00097">97</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="ac7b813bc8bb592d54f9f81c7b79a1c44"></a><!-- doxytag: member="reranker::EnvironmentImpl::GetVarMap" ref="ac7b813bc8bb592d54f9f81c7b79a1c44" args="(const string &amp;varname)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_var_map_base.html">VarMapBase</a>* <a class="el" href="classreranker_1_1_environment_impl.html#ac7b813bc8bb592d54f9f81c7b79a1c44">reranker::EnvironmentImpl::GetVarMap</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the <a class="el" href="classreranker_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> instance for the specified variable. </p>

<p>Implements <a class="el" href="classreranker_1_1_environment.html#a64763b2d3e5a5f1cc7a69ecc018d6003">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00106">106</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="a0b8461c2a65c4b439acc46d97ba01283"></a><!-- doxytag: member="reranker::EnvironmentImpl::GetVarMapForType" ref="a0b8461c2a65c4b439acc46d97ba01283" args="(const string &amp;type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classreranker_1_1_var_map_base.html">VarMapBase</a>* <a class="el" href="classreranker_1_1_environment_impl.html#a0b8461c2a65c4b439acc46d97ba01283">reranker::EnvironmentImpl::GetVarMapForType</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>type</em></td><td>)</td>
          <td><code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retrieves the <a class="el" href="classreranker_1_1_var_map.html" title="A container to hold the mapping between named variables of a specific type and their values...">VarMap</a> instance for the specified type. </p>

<p>Implements <a class="el" href="classreranker_1_1_environment.html#a3602611145e0b9c82aee80dd8e1abbf2">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00111">111</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="a19bdb0da8cbaa2ba188d4d6415241741"></a><!-- doxytag: member="reranker::EnvironmentImpl::Print" ref="a19bdb0da8cbaa2ba188d4d6415241741" args="(ostream &amp;os) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classreranker_1_1_environment_impl.html#a19bdb0da8cbaa2ba188d4d6415241741">reranker::EnvironmentImpl::Print</a> </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prints a human-readable string of all the variables in this environment, their types and, if primitive, their values. </p>
 
<p>Implements <a class="el" href="classreranker_1_1_environment.html#a07d328d2d2bbe0f62e7348f590e6529c">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_h_source.html#l00130">130</a> of file <a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a>.</p>

</div>
</div>
<a class="anchor" id="ae8549b3ea2960701a99da3e6d4054c9e"></a><!-- doxytag: member="reranker::EnvironmentImpl::ReadAndSet" ref="ae8549b3ea2960701a99da3e6d4054c9e" args="(const string &amp;varname, StreamTokenizer &amp;st)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classreranker_1_1_environment_impl.html#ae8549b3ea2960701a99da3e6d4054c9e">reranker::EnvironmentImpl::ReadAndSet</a> </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&#160;</td>
          <td class="paramname"><em>varname</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classreranker_1_1_stream_tokenizer.html">StreamTokenizer</a> &amp;&#160;</td>
          <td class="paramname"><em>st</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the specified variable to the value obtained from the following tokens available from the specified token stream. </p>

<p>Implements <a class="el" href="classreranker_1_1_environment.html#ae2641671e6f45d47f9432429ad5349bf">reranker::Environment</a>.</p>

<p>Definition at line <a class="el" href="environment-impl_8_c_source.html#l00107">107</a> of file <a class="el" href="environment-impl_8_c_source.html">environment-impl.C</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="environment-impl_8_h_source.html">environment-impl.H</a></li>
<li><a class="el" href="environment-impl_8_c_source.html">environment-impl.C</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Apr 9 2013 11:56:30 for Reranker Framework (ReFr) by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
